/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package appalquilerinmuebles;

import java.util.Comparator;

/**
 *
 * @author Administrador
 */
public class OrdenarAvisosxVisita implements Comparator {

    public int compare(Object o1, Object o2) {
        Aviso objAviso = (Aviso)o1; 
        Aviso objAviso2 = (Aviso)o2;
        return objAviso.getNroVisita() - objAviso2.getNroVisita();

    }
    public boolean equals(Object o) {
        return this == o;
  }
}
